package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.pojo.Role;

import java.util.List;

public interface RoleService {
    PageResult findPage(QueryPageBean queryPageBean);

    List all();

    List findByUserRoleId(Integer id);

    int add(Role role, Integer[] permissions);

    Role findById(Integer id);

    List findByRolePermission(Integer id);

    int edit(Role role, Integer[] permissions);

    int delete(Integer id);
}
